﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.IO;
using System.IO.Compression;
namespace oreimou
{
    class Pgzip:Pnode
    {
        void GzipDecompresss(Stream Input, Stream Output)
        {
            GZipStream gs = new GZipStream(Input, CompressionMode.Decompress);
            gs.CopyTo(Output);
        }
        public Pgzip(FileContent fc,long o, int s, string n)
            :base(o,s,n,fc)
        {
        }
        public override void Exract(string path)
        {
            Output(path);
            if (FileName.Contains("obj.gz"))
            {
                string name = Path.GetFileName(FileName);
                Output(path+"obj2",name);
            }
        }
    }
}
